package com.ccbhelper.provider;

import java.util.List;
import java.util.Map;

import org.ksoap2.serialization.SoapObject;

import com.ccbhelper.util.WebServiceUtil;

public class ShowClass {

	public static List<Map<String, String>>[] getInfo(String id){
		String[][] property =  new String[][]{{"no",id}};
		
		SoapObject soap =  WebServiceUtil.SendWebService(property,"SearchInstByInstNo");
		List<Map<String, String>>[] result = WebServiceUtil.parseResult2(soap,"SearchInstByInstNo");
		return result;
	}
	
	public static Map<String, String> addQueue(String phone,String instNo,String type){
		String[][] property =  new String[][]{{"no",instNo},{"phone",phone},{"type",type}};
		
		SoapObject soap =  WebServiceUtil.SendWebService(property,"ReserveInstQueue");
		Map<String, String> result = WebServiceUtil.parseResult3(soap,"ReserveInstQueue");
		return result;
	}
}
